<?php require(DIR_TEMPLATE . C('config_template')."/setting/setting.php" ); ?>
<?php echo $header; ?>

<?php if ($SPAN[0]) { ?>
  <div class="span<?php echo $SPAN[0]; ?>">
    <?php echo $column_left; ?>
  </div>
<?php } ?>

<div class="span<?php echo $SPAN[1];?>">
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php echo $content_top; ?>
  
  <h1><?php echo $_['heading_title']; ?></h1>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="login-content">
  <div class="row-fluid">
	<div class="span6">
	  <div class="inner">
      <h2><?php echo $_['text_new_customer']; ?></h2>
      <div class="content">
        <p><b><?php echo $_['text_register']; ?></b></p>
        <p><?php echo $_['text_register_account']; ?></p>
        <p><a href="<?php echo US('account/register'); ?>" class="button"><?php echo $_['button_continue']; ?></a></p></div>
      </div>
    </div>
    <div class="span6">
	  <div class="inner">
      <h2><?php echo $_['text_returning_customer']; ?></h2>
      <form action="<?php echo US('account/login'); ?>" method="post" enctype="multipart/form-data" id="form">
        <div class="content">
          <p><?php echo $_['text_i_am_returning_customer']; ?></p>
          <b><?php echo $_['entry_email']; ?></b><br />
          <input type="text" name="email" value="<?php echo $email; ?>" data-rule-required="true" data-rule-rangelength="5,96" data-rule-email="true" />
          <br />
          <br />
          <b><?php echo $_['entry_password']; ?></b><br />
          <input type="password" name="password" value="<?php echo $password; ?>" data-rule-required="true" data-rule-rangelength="4,20" />
          <br />
          <a href="<?php echo US('account/forgotten'); ?>"><?php echo $_['text_forgotten']; ?></a><br />
          <br />
          <input type="submit" value="<?php echo $_['button_login']; ?>" class="button" />
          <?php if ($redirect) { ?>
          <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          <?php } ?>
        </div>
      </form>
    </div></div>
   </div>
  </div>
  <?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
$('#login input').keydown(function(e) {
	if (e.keyCode == 13) {
		$('#login').submit();
	}
});
//--></script> 
</div>

<?php if ($SPAN[2]) { ?>
  <div class="span<?php echo $SPAN[2]; ?>">
    <?php echo $column_right; ?>
  </div>
<?php } ?>

<?php echo $footer; ?>